
#ifndef COMPILE_ONLINE
// 仅仅是为了在写测试用例的时候不报错，我们在编译该文件的时候添加选项 -G COMPILE_ONLINE即可
#include "header.cpp"

#endif

void Test1()
{
    std::vector<int> v{2, 7, 11, 15};
    std::vector<int> ret = Solution().twoSum(v, 9);
    std::vector<int> t1{0, 1};
    std::vector<int> t2{1, 0};
    if (ret == t1 || ret == t2)
    {
        std::cout << "Test1 ok!" << std::endl;
    }
    else
    {
        std::cout << "Test1 failed!" << std::endl;
    }
}

void Test2()
{
    std::vector<int> v{3, 2, 4};
    std::vector<int> ret = Solution().twoSum(v, 6);
    std::vector<int> t1{1, 2};
    std::vector<int> t2{2, 1};
    if (ret == t1 || ret == t2)
    {
        std::cout << "Test2 ok!" << std::endl;
    }
    else
    {
        std::cout << "Test2 failed!" << std::endl;
    }
}

int main()
{
    Test1();
    Test2();
    return 0;
}